import requests
from lxml import etree
import csv
def get_html(url):
    try:
        r = requests.get(url=url,headers=head,timeout=time)
        r.encoding = r.apparent_encoding
        r.raise_for_status()
        return r.text
    except Exception as error:
        print(error)
    def parser(html):
        doc = etree.html(html)
        out_list = []
        for row in doc.xpath